﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FA7 RID: 4007
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueModifierContent : IMessage<RogueModifierContent>, IMessage, IEquatable<RogueModifierContent>, IDeepCloneable<RogueModifierContent>, IBufferMessage
	{
		// Token: 0x170032CA RID: 13002
		// (get) Token: 0x0600B388 RID: 45960 RVA: 0x001E4E6F File Offset: 0x001E306F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueModifierContent> Parser
		{
			get
			{
				return RogueModifierContent._parser;
			}
		}

		// Token: 0x170032CB RID: 13003
		// (get) Token: 0x0600B389 RID: 45961 RVA: 0x001E4E76 File Offset: 0x001E3076
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueModifierContentReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170032CC RID: 13004
		// (get) Token: 0x0600B38A RID: 45962 RVA: 0x001E4E88 File Offset: 0x001E3088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueModifierContent.Descriptor;
			}
		}

		// Token: 0x0600B38B RID: 45963 RVA: 0x001E4E8F File Offset: 0x001E308F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierContent()
		{
		}

		// Token: 0x0600B38C RID: 45964 RVA: 0x001E4E97 File Offset: 0x001E3097
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierContent(RogueModifierContent other) : this()
		{
			this.modifierContentType_ = other.modifierContentType_;
			this.mJHDFLKGLJH_ = other.mJHDFLKGLJH_;
			this.contentModifierEffectId_ = other.contentModifierEffectId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B38D RID: 45965 RVA: 0x001E4ED4 File Offset: 0x001E30D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierContent Clone()
		{
			return new RogueModifierContent(this);
		}

		// Token: 0x170032CD RID: 13005
		// (get) Token: 0x0600B38E RID: 45966 RVA: 0x001E4EDC File Offset: 0x001E30DC
		// (set) Token: 0x0600B38F RID: 45967 RVA: 0x001E4EE4 File Offset: 0x001E30E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueModifierContentType ModifierContentType
		{
			get
			{
				return this.modifierContentType_;
			}
			set
			{
				this.modifierContentType_ = value;
			}
		}

		// Token: 0x170032CE RID: 13006
		// (get) Token: 0x0600B390 RID: 45968 RVA: 0x001E4EED File Offset: 0x001E30ED
		// (set) Token: 0x0600B391 RID: 45969 RVA: 0x001E4EF5 File Offset: 0x001E30F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MJHDFLKGLJH
		{
			get
			{
				return this.mJHDFLKGLJH_;
			}
			set
			{
				this.mJHDFLKGLJH_ = value;
			}
		}

		// Token: 0x170032CF RID: 13007
		// (get) Token: 0x0600B392 RID: 45970 RVA: 0x001E4EFE File Offset: 0x001E30FE
		// (set) Token: 0x0600B393 RID: 45971 RVA: 0x001E4F06 File Offset: 0x001E3106
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContentModifierEffectId
		{
			get
			{
				return this.contentModifierEffectId_;
			}
			set
			{
				this.contentModifierEffectId_ = value;
			}
		}

		// Token: 0x0600B394 RID: 45972 RVA: 0x001E4F0F File Offset: 0x001E310F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueModifierContent);
		}

		// Token: 0x0600B395 RID: 45973 RVA: 0x001E4F20 File Offset: 0x001E3120
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueModifierContent other)
		{
			return other != null && (other == this || (this.ModifierContentType == other.ModifierContentType && this.MJHDFLKGLJH == other.MJHDFLKGLJH && this.ContentModifierEffectId == other.ContentModifierEffectId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B396 RID: 45974 RVA: 0x001E4F7C File Offset: 0x001E317C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ModifierContentType != RogueModifierContentType.RogueModifierContentDefinite)
			{
				num ^= this.ModifierContentType.GetHashCode();
			}
			if (this.MJHDFLKGLJH != 0U)
			{
				num ^= this.MJHDFLKGLJH.GetHashCode();
			}
			if (this.ContentModifierEffectId != 0U)
			{
				num ^= this.ContentModifierEffectId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B397 RID: 45975 RVA: 0x001E4FF3 File Offset: 0x001E31F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B398 RID: 45976 RVA: 0x001E4FFB File Offset: 0x001E31FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B399 RID: 45977 RVA: 0x001E5004 File Offset: 0x001E3204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MJHDFLKGLJH != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.MJHDFLKGLJH);
			}
			if (this.ModifierContentType != RogueModifierContentType.RogueModifierContentDefinite)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.ModifierContentType);
			}
			if (this.ContentModifierEffectId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.ContentModifierEffectId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B39A RID: 45978 RVA: 0x001E5078 File Offset: 0x001E3278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ModifierContentType != RogueModifierContentType.RogueModifierContentDefinite)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.ModifierContentType);
			}
			if (this.MJHDFLKGLJH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MJHDFLKGLJH);
			}
			if (this.ContentModifierEffectId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContentModifierEffectId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B39B RID: 45979 RVA: 0x001E50E8 File Offset: 0x001E32E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueModifierContent other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ModifierContentType != RogueModifierContentType.RogueModifierContentDefinite)
			{
				this.ModifierContentType = other.ModifierContentType;
			}
			if (other.MJHDFLKGLJH != 0U)
			{
				this.MJHDFLKGLJH = other.MJHDFLKGLJH;
			}
			if (other.ContentModifierEffectId != 0U)
			{
				this.ContentModifierEffectId = other.ContentModifierEffectId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B39C RID: 45980 RVA: 0x001E514C File Offset: 0x001E334C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B39D RID: 45981 RVA: 0x001E5158 File Offset: 0x001E3358
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 40U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ContentModifierEffectId = input.ReadUInt32();
						}
					}
					else
					{
						this.ModifierContentType = (RogueModifierContentType)input.ReadEnum();
					}
				}
				else
				{
					this.MJHDFLKGLJH = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004894 RID: 18580
		private static readonly MessageParser<RogueModifierContent> _parser = new MessageParser<RogueModifierContent>(() => new RogueModifierContent());

		// Token: 0x04004895 RID: 18581
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004896 RID: 18582
		public const int ModifierContentTypeFieldNumber = 5;

		// Token: 0x04004897 RID: 18583
		private RogueModifierContentType modifierContentType_;

		// Token: 0x04004898 RID: 18584
		public const int MJHDFLKGLJHFieldNumber = 1;

		// Token: 0x04004899 RID: 18585
		private uint mJHDFLKGLJH_;

		// Token: 0x0400489A RID: 18586
		public const int ContentModifierEffectIdFieldNumber = 11;

		// Token: 0x0400489B RID: 18587
		private uint contentModifierEffectId_;
	}
}
